package sjms.construction.decorator;

/**
 * @ClassName:
 * @Description:实现了接口的抽象装饰类，保证拥有原来对象的行为
 * @Author fcb
 * @Date 2020/6/1 16:58
 */
public abstract class ShapeDecorator implements Shape{

    protected Shape shape;

    public ShapeDecorator(Shape shape){
        this.shape = shape;
    }

    @Override
    public void draw() {
        shape.draw();
    }
}
